<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
	//首页显示
    public function index(){
    	//导航列表的显示
    	$menuModel=D("Menu");
        $list=$menuModel->select();
        $this->assign('list',$list);
        $this->display();
    }
    //业务范围的显示
    public function business(){
    	//导航列表的显示
    	$menuModel=D("Menu");
        $list=$menuModel->select();
        $this->assign('list',$list);
    	//业务范围的显示完成
        $businessModel=M("Business");
        $business=$businessModel->select();
        $this->assign('business',$business);
        $this->display();       
    }
    //新闻资讯显示
    public function news(){
        //导航列表的显示
        $menuModel=D("Menu");
        $list=$menuModel->select();
        $this->assign('list',$list);
        //新闻资讯显示完成
        $newsModel=D("News");
        $news=$newsModel->select();
        //dump($news);die;
        $this->assign('news',$news);
        $this->display();
    }
     //关于我们显示
    public function about(){
        //导航列表的显示
        $menuModel=D("Menu");
        $list=$menuModel->select();
        $this->assign('list',$list);
        //关于我们显示完成
        $aboutModel=D("About");
        $about=$aboutModel->select();
        //dump($news);die;
        $this->assign('about',$about);
        $this->display();
    }

    //项目案例显示
    public function object(){
        //导航列表的显示
        $menuModel=D("Menu");
        $list=$menuModel->select();
        $this->assign('list',$list);
        //关于我们显示完成
        $objectModel=D("Object");
        $object=$objectModel->select();
        //dump($news);die;
        $this->assign('object',$object);
        $this->display();
    }

    //人才招聘的显示
    public function jobs(){
        //导航列表的显示
        $menuModel=D("Menu");
        $list=$menuModel->select();
        $this->assign('list',$list);
        //人才招聘完成
        $jobsModel=D("Jobs");
        $jobs=$jobsModel->select();
        //dump($news);die;
        $this->assign('jobs',$jobs);
        $this->display();
    }
}